/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MessageIO;

/**
 * MessageManager is an abstract class that can be used to organize data coming
 * from and to the MessageServer
 * @author Mark
 */
public abstract class MessageManager extends Object
    {
    /**
     * Creates a new MessageManager
     */
    public MessageManager()
        {
        super();
        }

    /**
     * Connects to the MessageServer and routes incoming messages
     * @param listen the listener given to
     */
    public void connect (MessageListener listen)
        {
        return;
        }

    /**
     * Disconnects from message server and stops routing
     * @param listen the listener given to
     */
    public void disconnect (MessageListener listen, ChatUsername name)
        {
        return;
        }

    /**
     * Sends message to the server
     * @param from the username
     * @param message the message
     */
    public void sendMessage(String from, String message)
        {
        return;
        }
    }
